# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pyvmomi
pkgver=7.0.3
pkgrel=0
pkgdesc="VMware vSphere Python SDK"
url="https://github.com/vmware/pyvmomi"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-vcrpy"
source="https://github.com/vmware/pyvmomi/archive/v$pkgver/py3-pyvmomi-$pkgver.tar.gz"
builddir="$srcdir/pyvmomi-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f3277cd1289bf66e549e342aa4e2f252e3926692af0cb613136bd683c9b75db8204571a7522f255afbe9c202399eadcb875ae0070f670579cb4622c203d9e00d  py3-pyvmomi-7.0.3.tar.gz
"
